package com.nulldev.util.web.nTube.util;

import com.nulldev.util.JVM.JVM;
import com.nulldev.util.io.file.FileUtil;

public class RBufTest {

	public static void main(String[] args) {
		final long estimatedBuffer = 1105;
		JVM.println("estimatedBuffer: " + FileUtil.convertToStringRepresentation(estimatedBuffer));
		final float fmtBuffer = (float) ((float) estimatedBuffer / (1 * 1024 * 1024));
		final String trueBuffer = String.format("%04d", (int) (fmtBuffer * 1e3));
		JVM.println("rBuf: " + trueBuffer + " (" + fmtBuffer + ")");
	}

}
